package com.ming.stringstudy.feedbacksystem.mapper;

import com.ming.stringstudy.feedbacksystem.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ming.stringstudy.feedbacksystem.vojo.RolePermissionVojo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aming
 * @since 2025-01-04
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    List<RolePermissionVojo> findAll();

    RolePermission selectByrpId(RolePermission rolePermission);

    void deleteRolePermissionByDeletedRoleId(List<Integer> ids);

    void deleteRolePermissionByDeletedPermissionId(List<Integer> ids);

    List<Integer> selectByRoleId(int roleId);
}
